package ru.gerunn.parsing;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import ru.gerunn.parsing.interfaces.ParseHandler;

public class SimpleParseHandlerTwo implements ParseHandler {

	public static Pattern pattern = Pattern.compile("^.*(\\d+).*$");

	public void handle(String string) {
		Matcher matcher = pattern.matcher(string);
		if (matcher.matches()) {
			System.out.println(matcher.group(1));
		}
	}

}
